#ifndef SCREENSHOTWIDGET_H
#define SCREENSHOTWIDGET_H

#include <QWidget>
#include <QPoint>
#include <QMouseEvent>
#include <QPaintEvent>
#include <QDialog>
#include "ScreenShotWidget_global.h"

#include "ScreenShot.h"

class SCREENSHOTWIDGET_EXPORT ScreenShotWidget : public QWidget
{
    Q_OBJECT
public:
    explicit ScreenShotWidget(QWidget *parent = nullptr);
public:
    ///@brief 打开截屏功能的函数
    void OpenScreenShotFunction();
private:
    ///@brief 一个按钮代表开启截屏功能
    QPushButton* m_beginScreenShot;

    ///@brief 一个布局，将按钮放在右上
    QHBoxLayout * m_mainlayout;

    ///@brief 截屏窗口类
    // ScreenShot * ScreenShot;

    ///@brief 一个pixmap,用于记录截图
    QPixmap m_tempPicture;


};

#endif // SCREENSHOTWIDGET_H
